package day08_stream_file_charset.com.itheima.d1_stream;

import java.util.*;
import java.util.stream.Stream;

public class Test2_Stream {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "张三", "李四", "王五", "赵六", "田七", "张无忌", "肘子若", "赵敏", "张强", "张三丰");
        Stream<String> lists = list.stream();

        HashMap<String, Integer> map = new HashMap<>();
        Stream<String> keys = map.keySet().stream();
        Stream<Integer> values = map.values().stream();
        Stream<Map.Entry<String, Integer>> entryStream = map.entrySet().stream();

        String[] names = {"张三", "张三1", "张三2", "张三3"};
        Stream<String> stream1 = Arrays.stream(names);
        Stream<String> stream2 = Stream.of(names);

    }
}
